Automattic\Jetpack\Extensions\Premium_Content\Subscription_Service\Abstract_Token_Subscription_Service C

Total Complexity 123
Dependencies 6
Dependents 11
Total lines 652
Lines of code 342
Logical lines of code 214
Comment lines 215
Methods 25
Properties 1

Methods 25

Method Rating Maintainability Complexity Lines of code
maybe_gate_access_for_user_if_tier()
C
36 28 75
get_valid_plan_ids_for_tier()
B
40 21 55
user_has_access()
A
52 9 24
abbreviate_subscriptions()
A
54 8 19
validate_subscriptions()
S
56 7 18
clear_token_cookie()
S
61 5 12
visitor_can_view_content()
S
52 4 26
set_token_cookie()
S
65 5 8
decode_token()
S
62 4 11
find_metadata()
S
63 4 11
token_from_request()
S
64 4 9
get_token_payload()
S
64 3 11
access_url()
S
63 3 11
maybe_gate_access_for_user_if_post_tier()
S
65 2 9
get_subscriber_email()
S
69 2 7
token_from_cookie()
S
73 2 5
has_token_from_cookie()
S
77 2 3
get_token_property()
S
69 2 7
get_and_set_token_from_request()
S
68 2 8
is_current_user_pending_subscriber()
S
100 1 0
initialize()
S
82 1 3
is_current_user_subscribed()
S
79 1 3
get_key()
S
100 1 0
get_rest_api_token_url()
S
74 1 4
__construct()
S
81 1 3